/**
 * 项目模块
 */
import makeApi from '../utils/services';

export const api = {
    getList: {
        url: '/api/project/list',
        defaultParams: { searchkey: '' },
    },
    getTypes: {
        url: '/api/project/types'
    },
    getStages: {
        url: '/api/project/stages'
    },
    detail: {
        url: '/api/project/detail'
    },
    infoField: {
        url: '/api/project/fields'
    },
    getIdentity: {
        url: '/api/project/titles'
    },
    getCourts: {
        url: '/api/project/courts'
    },
    getCause: {
        url: '/api/project/causeofaction'
    },
    saveProject: {
        url: '/api/project/save'
    },
    addCustomStage: {
        url: '/api/project/savestage'
    },
    deleteStage: {
        url: '/api/project/savestage'
    },
    completeStage: {
        url: '/api/project/completestage'
    },
    restartStage: {
        url: '/api/project/restartstage'
    },
    completeProject: {
        url: '/api/project/complete'
    },
    restartProject: {
        url: '/api/project/restart'
    },
    addMember: {
        url: '/api/project/addmember'
    },
    deleteMember: {
        url: '/api/project/deletemember'
    },
    setManager: {
        url: '/api/project/setmanager'
    },
    setHost: {
        url: '/api/project/sethost'
    },
    getFolderlist: {
        url: '/api/project/folderlist'
    },
    saveFile: {
        url: '/api/project/addfile'
    },
    refleshFile: {
        url: '/api/project/getfiles'
    },
    customFolder: {
        url: '/api/project/savefolder'
    },
    saveName: {
        url: '/api/project/savename'
    },
    saveInfo: {
        url: '/api/project/saveinfo'
    },
    addStage: {
        url: '/api/project/savestagedata'
    },
    renameProjectFile: {
        url: '/api/project/renamefile'
    },
    deleteProjectFile: {
        url: '/api/project/deletefile'
    },
    copyProjectFile: {
        url: '/api/project/filemerge'
    },
    linkProjectList: {
        url: '/api/project/listfortask',
        defaultParams: { searchkey: '' },
    },
    folderVisible: {
        url: '/api/project/foldervisible'
    },
    viewFile: {
        url: '/api/project/viewfile'
    },
    exportProjectStageFile: {
        url: '/api/project/exportprojectstagefile'
    }
};

const services = makeApi(api);

// 如果要定制重写某个请求接口可以在这里设置

export default services;
